#if !defined(AFX_SELECTWALKAIDER_H__E8614AD3_EB3B_4C50_9312_3D136A70ED20__INCLUDED_)
#define AFX_SELECTWALKAIDER_H__E8614AD3_EB3B_4C50_9312_3D136A70ED20__INCLUDED_

#include "../Common/ColorCombo.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// selectwalkaider.h : header file
//

#define			BT_ADDRESS_STRING_LEN			17

typedef struct _tagWAColor
{
	TCHAR			szBTAddress[BT_ADDRESS_STRING_LEN +	1];
	DWORD			dwColorIndex;
}WACOLOR;

typedef std::vector<WACOLOR> VEC_WACOLOR;

/////////////////////////////////////////////////////////////////////////////
// CSelectWalkAider dialog

class CSelectWalkAider : public CDialog
{
// Construction
public:
	CSelectWalkAider(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSelectWalkAider)
	enum { IDD = IDD_SELECT_WALKAIDER };
	CColorComboBox	m_cmbColor5;
	CColorComboBox	m_cmbColor4;
	CColorComboBox	m_cmbColor3;
	CColorComboBox	m_cmbColor2;
	CColorComboBox	m_cmbColor1;
	CBitmapButton	m_btnBeep5;
	CBitmapButton	m_btnBeep4;
	CBitmapButton	m_btnBeep3;
	CBitmapButton	m_btnBeep2;
	CBitmapButton	m_btnBeep1;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSelectWalkAider)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSelectWalkAider)
	afx_msg void OnButtonCancel();
	afx_msg void OnButtonOK();
	afx_msg void OnRadioClicked();
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonSearchWa();
	afx_msg void OnButtonBeep1();
	afx_msg void OnButtonBeep2();
	afx_msg void OnButtonBeep3();
	afx_msg void OnButtonBeep4();
	afx_msg void OnButtonBeep5();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	void			InitWAColorData();
	void			InitWAList();
	void			InitBeepButton();

	void			BeepWA(int nIndex);

	BOOL			SaveWAColor();
	void			HideAllWACtrls();
	int				GetColorIndexFromAddress(CString strAddress);

private:
	VEC_WACOLOR		m_vecWAColor;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SELECTWALKAIDER_H__E8614AD3_EB3B_4C50_9312_3D136A70ED20__INCLUDED_)
